﻿using System.Data;
using DAL;

namespace BLL
{
    public class BllOrder_Sell
    {
        #region[Get-Data]
        public DataTable GetOrderSell(string keywords)
        {
            return DalOrder_Sell.GetOrderSell(keywords);
        }
        public DataTable GetOrderSellEdit(int id)
        {
            return DalOrder_Sell.GetOrderSellEdit(id);
        }
        public DataTable GetOrderSellDetailEdit(int id)
        {
            return DalOrder_Sell.GetOrderSellDetailEdit(id);
        }
        public DataTable GetOrderMaterial(string keywords)
        {
            return DalOrder_Sell.GetOrderMaterial(keywords);
        }
        public DataTable GetAutoID(string ColunmName, string TableName)
        {
            return DalOrder_Sell.GetAutoID(ColunmName,TableName);
        }
        public DataTable GetOrderSellDetailExists()
        {
            return DalOrder_Sell.GetOrderSellDetailExists();
        }
        public DataTable GetOrderSellDetailTemp(int User_ID)
        {
            return DalOrder_Sell.GetOrderSellDetailTemp(User_ID);
        }
        public DataTable GetOrderSellDetailA(int User_ID, int Order_Sell_Id)
        {
            return DalOrder_Sell.GetOrderSellDetailA(User_ID, Order_Sell_Id);
        }
        public DataTable GetOrderSellDetailSum(int User_ID, int Flag)
        {
            return DalOrder_Sell.GetOrderSellDetailSum(User_ID,Flag);
        }
        public DataTable GetOrderSellDetailSumEdit(int id, int Flag)
        {
            return DalOrder_Sell.GetOrderSellDetailSumEdit(id, Flag);
        }
        public DataTable GetOrderSellDetailSumExport(int id, int Flag)
        {
            return DalOrder_Sell.GetOrderSellDetailSumExport(id, Flag);
        }
        public DataTable GetOrderSellIsActive(int IsActive)
        {
            return DalOrder_Sell.GetOrderSellIsActive(IsActive);
        }
        public DataTable GetOrderSellFillterDate(string DateBegin, string DateEnd)
        {
            return DalOrder_Sell.GetOrderSellFillterDate(DateBegin, DateEnd);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool InsertOrderSell(EtOrderSell obj)
        {
            return DalOrder_Sell.InsertOrderSell(obj);
        }
        public static bool InsertOrderSellDetail(EtOrderSellDetail obj)
        {
            return DalOrder_Sell.InsertOrderSellDetail(obj);
        }
        public static bool UpdateOrderSell(EtOrderSell obj)
        {
            return DalOrder_Sell.UpdateOrderSell(obj);
        }
        public static bool UpdateQuanlityOrder(EtOrderSellDetail obj)
        {
            return DalOrder_Sell.UpdateQuanlityOrder(obj);
        }
        public static bool UpdateQuanlityOrderRoot(EtOrderSellDetail obj)
        {
            return DalOrder_Sell.UpdateQuanlityOrderRoot(obj);
        }
        public static bool DeleteSellOrderDetail(EtOrderSellDetail obj)
        {
            return DalOrder_Sell.DeleteSellOrderDetail(obj);
        }
        public static bool DeleteSellOrder(EtOrderSell obj)
        {
            return DalOrder_Sell.DeleteSellOrder(obj);
        }
        public static bool DeleteSellDetailMaterial(EtOrderSellDetail obj)
        {
            return DalOrder_Sell.DeleteSellDetailMaterial(obj);
        }
        public static bool Review(EtOrderSell obj)
        {
            return DalOrder_Sell.Review(obj);
        }
        public static bool ReviewMaterial(EtOrderSellDetail obj)
        {
            return DalOrder_Sell.ReviewMaterial(obj);
        }
        public static bool UnReviewMaterial(EtOrderSellDetail obj)
        {
            return DalOrder_Sell.UnReviewMaterial(obj);
        }
        public static bool UnReView(EtOrderSell obj)
        {
            return DalOrder_Sell.UnReView(obj);
        }
        #endregion
    }
}